pkgname=ktextwidgets
pkgver=5.36.0
pkgrel=1
pkgdesc='Advanced text editing widgets'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="kcompletion kservice kiconthemes sonnet"
makedepends="extra-cmake-modules python doxygen qt5-qttools-dev kcompletion sonnet kiconthemes kservice"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="33d471601b76424331d23a0bdd1afcdccc2c999acdfc8faad45d50932405b09b680939bae4274182399bd90cc0553ec576b5e4e963714e504b9cd498d331ef55  ktextwidgets-5.36.0.tar.xz"
